package org.soft.xinyu.equipmentmanagement.result;


import lombok.Data;
import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: xinyu
 * @Date: 2022/01/08/15:07
 * @Description:
 */

public enum ResultCode {
    /**
     * 成功
     */
    SUCCESS(20000, "操作成功"),
    /**
     * 失败
     */
    FAILURE(500, "操作失败");

    /**
     * 状 态 码
     */
    @Getter
    private final int code;

    /**
     * 携 带 消 息
     */
    @Getter
    private final String message;

    /**
     * 构 造 方 法
     */
    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
